#ifndef AIPLAYER_H
#define AIPLAYER_H
#define NODEBUGAI
#include "Point.h"
#include "DoubleFiredPoint.h"
#include "Fleet.h"
#include "Arena.h"
#include <cstdlib>
using namespace std;

class AiPlayer {
	public:
		AiPlayer(int);
		
		Point<int> fire(Fleet*, Arena*&);
		
	private:
		void randomChooseNextPoint(Fleet*, Arena*);
		void diagonalChooseNextPoint(Fleet*, Arena*);
		void followChooseNextPoint(Fleet*, Arena*);
		void searchBestPoint(Fleet*, Arena*);
		bool searchBoatNotDestroyed(Fleet*, Arena*);
		
		
		int dim;
		Point<int> next;
		Point<int> lastHit;
		Point<int> startHit;
		bool follow;
		int tryPoints;
		
		bool diagonalChoise;
		bool directionY;
		bool directionX;
		int numPoints;
};

#endif
